<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<title>添加/修改资源 </title>
<meta name="keywords" content="添加/修改资源">
<meta name="description" content="添加/修改资源">

<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/lib/webuploader/0.1.5/webuploader.css" />

</head>
<body>
<article class="page-container">
	<form class="form form-horizontal" id="fr_sysresource">
	<input type="hidden" id="id" name="id" value="${beanResource.id}" />
						
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red"></span>所属目录:</label>
		<div class="formControls col-xs-5 col-sm-6">
			<select id="pid" name="pid" class="input-text">
			<option value="">请选择所属上级</option>
			<c:forEach var="bean" items="${beanList}">
				<c:choose>
					<c:when test="${beanResource.pid !=null}">
						<option value="${bean.id}" selected="selected">${bean.name}</option>
					</c:when>
					<c:otherwise>
						<option value="${bean.id}">${bean.name}</option>
					</c:otherwise>
				</c:choose>
				
			</c:forEach>
		</select>
		</div>
	</div>
						
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>资源名称:</label>
		<div class="formControls col-xs-5 col-sm-6">
			<input type="text" class="input-text" value="" placeholder="" id="name" name="name" />
		</div>
	</div>
						
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>资源类型:</label>
		<div class="formControls col-xs-5 col-sm-6">
			<select id="resourceType" name="resourceType" class="input-text">
			<c:forEach var="beanList" items="${rTypeBean}">
				<option value="${beanList.dictNo}">${beanList.dictName}</option>
			</c:forEach>
		</select>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>菜单类型:</label>
		<div class="formControls col-xs-5 col-sm-6">
			<select id="menuType" name="menuType" class="input-text">
			<option value="">请选菜单类型</option>
			<c:forEach var="beanList" items="${menuType}">
				<option value="${beanList.dictNo}">${beanList.dictName}</option>
			</c:forEach>
		</select>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red"></span>权限值:</label>
		<div class="formControls col-xs-5 col-sm-6">
			<input type="text" class="input-text" value="" placeholder="" id="resourceValue" name="resourceValue" />
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>路径:</label>
		<div class="formControls col-xs-5 col-sm-6">
			<input type="text" class="input-text" value="" placeholder="" id="resourceUri" name="resourceUri" />
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>图标:</label>
		<div class="formControls col-xs-5 col-sm-6">
			<input type="text" class="input-text" value="" placeholder="" id="resourceIcon" name="resourceIcon" />
			<label for="imageSum" class="webuploader-pick">上传</label>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>资源状态:</label>
		<div class="formControls col-xs-5 col-sm-6">
		<select id="resourceStatus" name="resourceStatus" class="input-text">
			<c:forEach var="beanList" items="${detailBean}">
				<option value="${beanList.dictNo}">${beanList.dictName}</option>
			</c:forEach>
		</select>
		</div>
	</div>
	<div class="row cl">
		<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>序号:</label>
		<div class="formControls col-xs-5 col-sm-6">
			<input type="text" class="input-text" value="" placeholder="" id="orders" name="orders" />
		</div>
	</div>
	<div class="row cl">
		<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
			<input class="btn btn-primary radius" type="button" id="sub_mitbtn" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
		</div>
	</div>
	</form>
</article>

 <form  id="fr_ajaxFileUpload_rico" enctype="multipart/form-data" method="POST">
	<input style="position: absolute;left:-9999px;" type="file" name="natrualImgFile" id="imageSum"  onchange="subMitFile_ico(this.value)" />
</form>

<script type="text/javascript" src="${pageContext.request.contextPath}/lib/jquery/jquery.form.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/lib/jquery/ajaxfileupload.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jscommon/jsUtils/picToUpUtil.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/page/sysconfig/addupdate/sysResourceAddUpdateMgr.js"></script>
</body>
</html>



